package com.zr.hospital.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 
 * @TableName user
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value ="user")
public class User implements Serializable {
    /**
     * ID主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 登录名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 真实姓名
     */
    @TableField("RealName")
    private String realName;

    /**
     * 用户类别
     */
    @TableField("UseType")
    private Integer useType;

    /**
     * 医生职称ID
     */
    @TableField("DocTitleID")
    private Integer docTitleId;

    /**
     * 是否参与排班
     */
    @TableField("IsScheduling")
    private String isScheduling;

    /**
     * 所在科室ID
     */
    @TableField("DeptID")
    private Integer deptId;

    /**
     * 挂号级别ID
     */
    @TableField("RegistLeID")
    private Integer registleId;

    /**
     * 删除标记
     */
    @TableLogic(value = "1",delval = "0")
    @TableField("DelMark")
    private Integer delMark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}